/* Element Plus 主题定制 */

/* 自定义 CSS 变量覆盖 Element Plus 默认主题 */
:root {
  /* 主色调 - 福州印象主题色 */
  --el-color-primary: #1890ff;
  --el-color-primary-light-3: #40a9ff;
  --el-color-primary-light-5: #69c0ff;
  --el-color-primary-light-7: #91d5ff;
  --el-color-primary-light-8: #bae7ff;
  --el-color-primary-light-9: #e6f7ff;
  --el-color-primary-dark-2: #096dd9;
  
  /* 成功色 */
  --el-color-success: #52c41a;
  --el-color-success-light-3: #73d13d;
  --el-color-success-light-5: #95de64;
  --el-color-success-light-7: #b7eb8f;
  --el-color-success-light-8: #d9f7be;
  --el-color-success-light-9: #f6ffed;
  
  /* 警告色 */
  --el-color-warning: #faad14;
  --el-color-warning-light-3: #ffc53d;
  --el-color-warning-light-5: #ffd666;
  --el-color-warning-light-7: #ffe58f;
  --el-color-warning-light-8: #fff1b8;
  --el-color-warning-light-9: #fffbe6;
  
  /* 危险色 */
  --el-color-danger: #ff4d4f;
  --el-color-danger-light-3: #ff7875;
  --el-color-danger-light-5: #ffa39e;
  --el-color-danger-light-7: #ffccc7;
  --el-color-danger-light-8: #ffe1e1;
  --el-color-danger-light-9: #fff2f0;
  
  /* 信息色 */
  --el-color-info: #1890ff;
  
  /* 文字颜色 */
  --el-text-color-primary: #262626;
  --el-text-color-regular: #595959;
  --el-text-color-secondary: #8c8c8c;
  --el-text-color-placeholder: #bfbfbf;
  
  /* 边框颜色 */
  --el-border-color: #d9d9d9;
  --el-border-color-light: #e8e8e8;
  --el-border-color-lighter: #f0f0f0;
  --el-border-color-extra-light: #fafafa;
  
  /* 背景色 */
  --el-bg-color: #ffffff;
  --el-bg-color-page: #f0f2f5;
  --el-bg-color-overlay: #ffffff;
  
  /* 圆角 */
  --el-border-radius-base: 6px;
  --el-border-radius-small: 4px;
  --el-border-radius-round: 20px;
  --el-border-radius-circle: 100%;
}

/* 侧边栏菜单样式定制 */
.el-menu--vertical {
  border-right: none;
}

.el-menu--dark {
  background-color: #001529;
}

.el-menu--dark .el-menu-item {
  color: rgba(255, 255, 255, 0.65);
}

.el-menu--dark .el-menu-item:hover {
  background-color: #1890ff;
  color: #fff;
}

.el-menu--dark .el-menu-item.is-active {
  background-color: #1890ff;
  color: #fff;
}

.el-menu--dark .el-sub-menu__title {
  color: rgba(255, 255, 255, 0.65);
}

.el-menu--dark .el-sub-menu__title:hover {
  background-color: #1890ff;
  color: #fff;
}

/* 表格样式优化 */
.el-table {
  border-radius: 6px;
  overflow: hidden;
}

.el-table th.el-table__cell {
  background-color: #fafafa;
  color: #262626;
  font-weight: 500;
}

.el-table .el-table__row:hover > td {
  background-color: #f5f5f5;
}

/* 按钮样式优化 */
.el-button {
  border-radius: 6px;
  font-weight: 400;
}

.el-button--primary {
  background-color: #1890ff;
  border-color: #1890ff;
}

.el-button--primary:hover {
  background-color: #40a9ff;
  border-color: #40a9ff;
}

.el-button--success {
  background-color: #52c41a;
  border-color: #52c41a;
}

.el-button--success:hover {
  background-color: #73d13d;
  border-color: #73d13d;
}

.el-button--warning {
  background-color: #faad14;
  border-color: #faad14;
}

.el-button--warning:hover {
  background-color: #ffc53d;
  border-color: #ffc53d;
}

.el-button--danger {
  background-color: #ff4d4f;
  border-color: #ff4d4f;
}

.el-button--danger:hover {
  background-color: #ff7875;
  border-color: #ff7875;
}

/* 输入框样式优化 */
.el-input__wrapper {
  border-radius: 6px;
}

.el-input__wrapper:hover {
  border-color: #40a9ff;
}

.el-input__wrapper.is-focus {
  border-color: #1890ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

/* 对话框样式优化 */
.el-dialog {
  border-radius: 8px;
}

.el-dialog__header {
  padding: 15px 20px 15px;
  border-bottom: 1px solid #e8e8e8;
}

.el-dialog__body {
  padding: 15px;
}

.el-dialog__footer {
  padding: 14px 20px 24px;
  border-top: 1px solid #e8e8e8;
}

/* 分页样式优化 */
.el-pagination {
  margin-top: 20px;
  justify-content: center;
}

.el-pagination .el-pager li {
  border-radius: 4px;
}

.el-pagination .el-pager li.is-active {
  background-color: #1890ff;
  color: #fff;
}

/* 消息提示样式优化 */
.el-message {
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 加载状态样式 */
.el-loading-mask {
  background-color: rgba(255, 255, 255, 0.9);
}

/* 表单样式优化 */
.el-form-item__label {
  color: #262626;
  font-weight: 500;
}

.el-form-item__error {
  color: #ff4d4f;
}

/* 标签样式优化 */
.el-tag {
  border-radius: 4px;
}

.el-tag--primary {
  background-color: #e6f7ff;
  border-color: #91d5ff;
  color: #1890ff;
}

.el-tag--success {
  background-color: #f6ffed;
  border-color: #b7eb8f;
  color: #52c41a;
}

.el-tag--warning {
  background-color: #fffbe6;
  border-color: #ffe58f;
  color: #faad14;
}

.el-tag--danger {
  background-color: #fff2f0;
  border-color: #ffccc7;
  color: #ff4d4f;
}